package cn.lyj.study.mapper;

import cn.lyj.study.pojo.Business;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BusinessMapper {

    List<Business> getAllBusiness() ;

    int addBusiness(Business business);

    int updateBusiness(Business business);
    int delectBusiness(@Param("businessId") int businessId);
}
